<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>后台管理系统</title>
<link rel="stylesheet" href="Public/css/layout.css" type="text/css"
	media="screen" />
<script type="text/javascript">
	$(document).ready(function() 
    	{ 
      	  $(".tablesorter").tablesorter(); 
   	 } 
	);
	$(document).ready(function() {

	//When page loads...
	$(".tab_content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab_content:first").show(); //Show first tab content

	//On Click Event
	$("ul.tabs li").click(function() {

		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
		$(".tab_content").hide(); //Hide all tab content

		var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active ID content
		return false;
	});

});
    </script>
<script type="text/javascript">
    $(function(){
        $('.column').equalHeight();
    });
</script>

</head>


<body>

	<include file='./Application/Home/View/admin/admintop.html'/>
	<!-- end of header bar -->

	<section id="secondary_bar">
		<div class="user">
			<p>admin</p>
			<!-- <a class="logout_user" href="#" title="Logout">Logout</a> -->
		</div>
		<div class="breadcrumbs_container">
			<article class="breadcrumbs">
				<a href="index.php?m=home&c=index&a=login">后台管理系统</a>
				<div class="breadcrumb_divider"></div>
				<a class="current">文章发布</a>
			</article>
		</div>
	</section>
	<!-- end of secondary bar -->
	<include file='./Application/Home/View/admin/leftmenu.html'/>
	<section id="main" class="column">
		<form id="form1" name="form1" method="post"
			action="index.php?m=home&c=index&a=newsadd">
			<article class="module width_full">
				<header>
					<h3>发表新文章</h3>
				</header>
				<div class="module_content">
					<fieldset>
						<label>标题</label> <input style="width: 22%;margin-left: -150px;"type="text" name="title"
							value="{$data[0].title|default=''}">
						<label style="margin-left: 150px;">栏目</label> 
						<select name="column"style="width: 22%;margin-left: -150px;">
							<foreach name="data1" item="value">
							<option value={$value.column}>{$value.column}</option>
							</foreach>
						<select>
					</fieldset>
					
					<fieldset>
						<label>内容</label>
						<textarea rows="12" name="content">{$data[0].content|default=''}</textarea>
					</fieldset>
					<fieldset style="width: 48%; float: left; margin-right: 3%;">
						<label>作者</label> <input type="text" name="author"
							style="width: 92%;" value="{$data[0].author|default=''}">
					</fieldset>
					<fieldset style="width: 48%; float: left;">
						<label>出处</label> <input type="text" name="from"
							style="width: 92%;" value="{$data[0].from|default=''}">
					</fieldset>
					<div class="clear"></div>
				</div> 
				<footer>
					<div class="submit_link">
						<input type="hidden" name="id" value=" {$data.id|default='0'}"/>
						<input type="submit" name="submit" value="发布" class="alt_btn"/>
					</div>
				</footer>
			</article>
		</form>
		<div class="spacer"></div>
	</section>
</body>
</html>